<template>
	<view>
		<view class="title">
			<view>欢迎使用</view>
			<view>GEAS电子签约</view>
		</view>
		<view class="img">
			<image src="../../static/images/customer.jpg" mode=""></image>
		</view>
		<!-- <view class="iconfont icongengduo"></view> -->
		<view class="btn">
			<button type="primary" @click="startParents">我是家长</button>
			<button type="primary" @click="startAdvisor" class="advisor">我是顾问</button>
		</view>
		<view class="cooperate">
			
		</view>
		<!-- <web-view :src="url" v-if="url.length"></web-view> -->
	</view>
</template>

<script>
	// import { login, getUserState } from '../../api/indexApi.js'
	export default {
		data() {
			return {
				url: ''
			}
		},
		onLoad() {
			// login({mobile: 15750892501, password: 1}).then(res => {
			// 	console.log(res)
			// 	// // #ifdef MP-WEIXIN
			// 	// console.log(res.header['Set-Cookie'])
			// 	// uni.setStorageSync('cookie', res.header['Set-Cookie'])
			// 	// // #endif
			// })
		},
		methods: {
			startParents() {
				uni.navigateTo({
					url: '../service/customerSignList'
				})
			},
			startAdvisor() {
				uni.navigateTo({
					url: '../service/adviserSignList'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.title {
		text-align: center;
		font-family: FZLANTY_DAJW--GB1-0;
		font-size: 46rpx;
		font-weight: 600;
		color: #303030;
		padding-top: 150rpx;
	}
	.img {
		margin: 26rpx auto 0;
		text-align: center;
		image {
			width: 486rpx;
			height: 486rpx;
		}
	}
	.btn {
		margin-top: 24rpx;
		button {
			width: 410rpx;
			height: 102rpx;
			// background-image: linear-gradient(89deg, #ec9349 0%, #f4c371 100%),linear-gradient(#ec984c, #ec984c);
			background-image: linear-gradient(to right, #ec9349, #f4c371);
			box-shadow: 0rpx 15rpx 35rpx 0rpx rgba(236, 125, 76, 0.48);
			border-radius: 50rpx;
			font-family: SourceHanSansCN-Medium;
			font-size: 34rpx;
			line-height: 102rpx;
		}
		.advisor {
			background-color: #fff;
			background-image: none;
			color: #ec9349;
			border: 1rpx solid #f4c371;
			margin-top: 30rpx;
		}
	}
	.cooperate {
		position: absolute;
		left: 50%;
		bottom: 68rpx;
		transform: translateX(-50%);
		font-size: 24rpx;
		font-family: PingFangSC-Regular;
		color: #9a9a9a;
	}
</style>
